package com.ruoyi.warehouse.mapper;

import com.ruoyi.warehouse.domain.Purchase;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lemon
 * @date 2025/01/13 21:30
 **/
@Mapper
@Repository
public interface PurchaseMapper {
    /**
     * 插入采购记录
     * @param purchase 采购记录
     */
    void insert(Purchase purchase);

    /**
     * 修改审核状态
     * @param purchase 采购单
     */
    void updateCheckStatus(Purchase purchase);

    /**
     * 查询采购单集合
     * @param purchase 查询条件
     * @return 采购单集合
     */
    List<Purchase> selectPmsPurchaseList(Purchase purchase);
}
